package com.etooling.framework.entity;

import com.etooling.framework.svo.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author X
 * @title: Tag
 * @projectName ems
 * @description: 标签管理
 * @date 2021/8/515:49
 */
@Entity
@Table(name = "t_tag", schema = "framework")
public class Tag extends AbstractEntity {
    String name;
    String target;//用于什么地方
    String status;
    String parentId;
    String shearType;//个人、部门、共享
    String shearUserId;
    String shearUserName;
    String createUserId;
    String createUserName;
    String shearOrg;
    String companyId;
    String aliasName;//别名
    String haveChildren;
    String isQc; // 是否需要质检
    String tagColor;


    private List<Tag> children;
    @Transient
    public List<Tag> getChildren() {
        return children;
    }

    public void setChildren(List<Tag> children) {
        this.children = children;
    }

    public String getIsQc() {
        return isQc;
    }

    public void setIsQc(String isQc) {
        this.isQc = isQc;
    }

    public String getTagColor() {
        return tagColor;
    }

    public void setTagColor(String tagColor) {
        this.tagColor = tagColor;
    }

    public String getHaveChildren() {
        return haveChildren;
    }

    public void setHaveChildren(String haveChildren) {
        this.haveChildren = haveChildren;
    }

    public String getShearUserId() {
        return shearUserId;
    }

    public void setShearUserId(String shearUserId) {
        this.shearUserId = shearUserId;
    }

    public String getShearUserName() {
        return shearUserName;
    }

    public void setShearUserName(String shearUserName) {
        this.shearUserName = shearUserName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public String getShearOrg() {
        return shearOrg;
    }

    public void setShearOrg(String shearOrg) {
        this.shearOrg = shearOrg;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getShearType() {
        return shearType;
    }

    public void setShearType(String shearType) {
        this.shearType = shearType;
    }
}
